package com.cqndt.disaster.device.vo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import com.cqndt.disaster.device.domain.TabVideoMonitoring;

/**
 * Created By marc
 * Date: 2019/4/18  16:12
 * Description:
 */
@Data
@EqualsAndHashCode(callSuper=false)
public class TabVideoMonitoringVo extends TabVideoMonitoring {
	
	private static final long serialVersionUID = -6084675944761232901L;
	/** 页数 */
    private Integer page = 1;
    /** 条数 */
    private Integer limit = 10;
    /** 用户id */
    private Integer userId;
    /** 区域等级 */
    private String level;
    /**  区域编码 */
    private String areaCode;
    /** 区域编码 */
    @SuppressWarnings("unused")
	private String areaCodeSplit;
    /** 设备厂商名称 */
    private String staticName;
    /** 项目名称 */
    private String projectName;
    /** 区域名称 */
    private String areaName;
    /** 摄像头序列 */
    private String serial;
    /** appKey */
    private String appKey;
    /** appSecret */
    private String appSecret;
    /** token */
    private String token;
    public String getAreaCodeSplit(){
        if(null != getAreaCode()){
            return getAreaCode().substring(0,2);
        }
        return null;
    }
}